/**
 * TimeLogger.java 1.0 2007-6-7 上午01:29:12,创建 by yangfan
 */


package org.in4j.core.common;

/**
 *
 * @author yangfan
 * @version 1.0 2007-6-7 上午01:29:12,创建
 */
public class TimeLogger
{
	private long startTime;

	public TimeLogger()
	{
		reset();
	}

	public void reset()
	{
		this.startTime = System.currentTimeMillis();
	}

	public long getElapsedTime()
	{
		long now = System.currentTimeMillis();
		return now - startTime;
	}
}